<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TITLE="Temporary Schedule">

	<CFSET sFolder="tempsched">
	<CFINCLUDE TEMPLATE="../common/getsched.cfm">	
	<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
		<CFOUTPUT>
			<TR>
				<TD colspan=3>
				   <CFIF isEnabled>
					<INPUT TYPE="SUBMIT" NAME="btnSaveTemp" VALUE = "Apply Changes" CLASS="bitbtn" ONCLICK="return verifydelete('Assign temporary schedule to the selected employees:','Please select an employee.','')">&nbsp;
					<CFIF getNewMaster.recordcount GT 0>
						<INPUT TYPE="SUBMIT" NAME="btnDeleteTemp" VALUE = "Delete Sked" CLASS="bitbtn" ONCLICK="return verifydelete('Delete selected temporary schedule of selected employees:','Please select an employee.','Please select Sked to delete.')">&nbsp;
					</CFIF>
				   </CFIF>
				</TD>
			</TR>
			<TR>
				<TD colspan=3>
				   &nbsp;
				</TD>
			</TR>
			<TR>
				<CFSET lstKeyValue="CATEGORY">
				<CFSET sLkFlds="Work Sked Code~WORKSKEDCODE~ftString,Description~DESCRIPTION~ftString,Category~CATEGORY~ftString">
				<CFSET sfrmflddesc="lkCategory">
				<CFSET sflddesc=lstKeyValue>
				<TD>Schedule:</TD>
				<TD>*</TD>
				<TD>
					<INPUT Readonly TYPE="TEXT" SIZE="20" NAME="tempSchedCode" ID="idSchedCode" VALUE="" ONBLUR=""GetValue('C','CLKWORKSKED','edtSchedCode,lkCategory','frmSched','#sLkFlds#','WORKSKEDCODE','lkCategory','PATTERNCODE',this.value) #sCanUpdate#>
						<CFIF isEnabled><A HREF="javascript:ShowLookup('C','CLKWORKSKED','tempSchedCode,lkCategory','frmSched','#sLkFlds#','WORKSKEDCODE','#sfrmflddesc#','#sflddesc#','TYPE=','TEMPORARY')"></CFIF><IMG SRC="#client.icon_path#lookup.gif" BORDER="0" ALT="Select from Lookup" ALIGN="bottom"><CFIF isEnabled></A></CFIF>	
						<INPUT TYPE="hidden" NAME="lkCategory" VALUE="">
				</TD>
			</TR>
			<TR>
				<TD>Start Date:</TD>
				<TD>*</TD>
				<TD>
					<INPUT TYPE="TEXT" NAME="tempStartDate" VALUE="" SIZE="10" #sCanUpdate#>
					<CFIF isEnabled>
						<A HREF="javascript:quickpopdate('frmSched','tempStartDate');"><IMG SRC="#client.icon_path#calendar.gif" BORDER="0" ALT="View Calendar" ALIGN="bottom"></A>
					<CFELSE>
						<IMG SRC="#client.icon_path#calendar.gif" BORDER="0" ALT="View Calendar" ALIGN="bottom">
					</CFIF>
				</TD>	
			</TR>
			
			<TR>
				<TD>End Date:</TD>
				<TD>*</TD>
				<TD>
					<INPUT TYPE="TEXT" NAME="tempEndDate" VALUE="" SIZE="10" #sCanUpdate#>
					<CFIF isEnabled>
						<A HREF="javascript:quickpopdate('frmSched','tempEndDate');"><IMG SRC="#client.icon_path#calendar.gif" BORDER="0" ALT="View Calendar" ALIGN="bottom"></A>
					<CFELSE>
						<IMG SRC="#client.icon_path#calendar.gif" BORDER="0" ALT="View Calendar" ALIGN="bottom">
					</CFIF>
				</TD>	
			</TR>
		</CFOUTPUT>
		<TR>
			<TD COLSPAN="3">
				<TABLE BORDER="0" WIDTH="100%">
					<CFOUTPUT>
						<TR ALIGN="CENTER" BGCOLOR="#client.color_tblhead#">
							<CFIF getNewMaster.recordcount GT 0 AND isEnabled>
								<TD WIDTH="5%" CLASS="boldwhite">
									<INPUT TYPE="checkbox" NAME="lblMaster" id="idMaster" label="" onClick="javascript:checkMe('Master')">
								</TD>
							</CFIF>
							<TD WIDTH="35%" CLASS="boldwhite">Schedule</TD>
							<TD WIDTH="30%" CLASS="boldwhite">Start Date</TD>
							<TD WIDTH="30%" CLASS="boldwhite">End Date</TD>
						</TR>
					</CFOUTPUT>
				</TABLE>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN="3">
				<TABLE BORDER="0" WIDTH="100%">
					<CFSET rowCounter=0>
					<CFIF getNewMaster.RECORDCOUNT>
						<INPUT TYPE="hidden" NAME="chkMaster" VALUE="">
						<CFOUTPUT QUERY="getNewMaster">
							<CFSET rowCounter=rowCounter+1>
							<TR ALIGN="CENTER" BGCOLOR="#IIf(rowCounter Mod 2, "client.color_tblset1", "client.color_tblset2")#" >
								<TD WIDTH="5%" ALIGN="CENTER"><input type="Checkbox" name="chkMaster" value="#DATEFORMAT(STARTDATE,'mm/dd/yyyy')#~#DATEFORMAT(ENDDATE,'mm/dd/yyyy')#"></TD>
								<TD WIDTH="35%" >#WORKSKEDCODE#</TD>
								<TD WIDTH="30%" >#DATEFORMAT(STARTDATE,"mm/dd/yyyy")#</TD>
								<TD WIDTH="30%" >#DATEFORMAT(ENDDATE,"mm/dd/yyyy")#</TD>
							</TR>
						</CFOUTPUT>
						<CFOUTPUT>
							<TR BGCOLOR="#client.color_tblfoot#">
								<TD COLSPAN=4 CLASS="BOLDWHITE"><b>#rowCounter# Records Found</b></TD>
							</TR>
						</CFOUTPUT>
					<CFELSE>
						<CFOUTPUT>
							<TR BGCOLOR="#client.color_tblfoot#">
								<TD COLSPAN=4 CLASS="BOLDWHITE"><b>No Records Found</b></TD>
							</TR>
						</CFOUTPUT>
					</CFIF>
				</TABLE>
			</TD>
		</TR>
	</TABLE>
<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TOP="False">
